package server

import (
	"enjoy_xxz/formdata"
	"enjoy_xxz/internal/model/spikes"
	"fmt"
)

// 获取秒杀活动列表
func GetSpikesActivityList() ([]formdata.ActivityList, error) {
	s := spikes.SpikesActivity{}
	list, err := s.GetSpokesActivityList()
	if err != nil {
		return nil, fmt.Errorf("活动列表查询失败::%v", err)
	}
	return list, nil
}
